package com.gowants.pems.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gowants.pems.mapper.SysPowerMapper;
import com.gowants.pems.model.SysPower;

@Service(value = "scmsPowerService")
public class SysPowerService extends NewBaseService<SysPower> {

	@Autowired
	private SysPowerMapper scmsPowerMapper;

	@Override
	public int save(SysPower record) 
	{
		return scmsPowerMapper.save(record);
	}

	@Override
	public int delete(String primaryKey) 
	{
		return scmsPowerMapper.delete(primaryKey);
	}

	public int deleteByRoleId(String primaryKey) 
	{
		return scmsPowerMapper.deleteByRoleId(primaryKey);
	}

	@Override
	public int update(SysPower record) 
	{
		return scmsPowerMapper.update(record);
	}

	@Override
	public SysPower selectOne(String primaryKey) 
	{
		return null;
	}

	@Override
	public List<SysPower> select(SysPower record) 
	{
		return scmsPowerMapper.select(record);
	}

	public List<SysPower> selectLogin(SysPower record) 
	{
		return scmsPowerMapper.selectLogin(record);
	}

	public List<SysPower> selectAdmin(SysPower record) 
	{
		return scmsPowerMapper.selectAdmin(record);
	}

	@Override
	public int getCount(SysPower record)
	{
		return 0;
	}

}
